import React, {Suspense} from 'react'
import {BrowserRouter as Router, Switch, Route} from 'react-router-dom'

import {Home} from '@pages/home'

const Root = () => {
    return (
        <Router>
            <Suspense fallback={<div>loading</div>}>
                <Switch>
                    <Route path='/' exact component={Home} />
                </Switch>
            </Suspense>
        </Router>
    )
}

export default Root